package cn.wizzer.app.web.modules.controllers.open;


import cn.wizzer.app.user.modules.services.QuickReplyService;
import cn.wizzer.framework.util.Result;
import com.alibaba.dubbo.config.annotation.Reference;
import org.nutz.dao.Cnd;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;


/**
 * 快捷语
 *
 * @author .
 */
@IocBean
@At("/open/quickReply")
public class ApiQuickReplyController {
    @Inject
    @Reference
    private QuickReplyService quickReplyService;

    @At
    @Ok("json:full")
    public Result list() {
        return Result.success(quickReplyService.query(Cnd.where("disabled", "=", 0)
                .and("delFlag", "=", 0)));
    }
}
